import fetch from 'utils/fetch';
//未关联 用户
export function page(query) {
  return fetch({
    url: '/api/admin/org/user/notSelected',
    method: 'get',
    params: query
  });
}
//保存用户
export function addSelectUser(id, uid) {
  return fetch({
    url: '/api/admin/org/user/saveUser/'+ id+'/'+uid,
    method: 'post',
    data: obj
  });
}

//机构下 用户
export function orgPage(query) {
  return fetch({
    //url: '/api/admin/org/user/page',
    url: '/api/admin/org/user/selected',
    method: 'get',
    params: query
  });
}
//移除关联用户
export function delObj(obj) {
  return fetch({
    url: '/api/admin/org/user/deleteUser',
    method: 'delete',
    data: obj
  })
}
//添加关联用户
export function addObj(obj) {
  return fetch({
    url: '/api/admin/org/user',
    method: 'post',
    data: obj
  })
}
